package com.example.mqdemo.direct;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/*
 *@description: 路由模式消息接收者1
 *@author: hisen
 *@Time: 2023/11/23  18:06
 */
@Component
public class DirectConsumer1 {
    @RabbitListener(queues = "directQueue1")
    public void handleMessage(String message){
        System.out.println("directQueue1收到消息："+message);
    }
}
